

@mixin buttons-generator-retro--common($bgColor) {
    min-width: 130px;
    height: 40px;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    outline: none;
    border: 1px solid #000;
    color: #000;
    background: transparent;
    z-index: 0;
    &:hover:after {
      top: 0;
      left: 0;
    }
    &:after {
      content: "";
      width: 100%;
      z-index: -1;
      position: absolute;
      height: 100%;
      top: 5px;
      left: 5px;
      transition: 0.2s;
      background-color: $bgColor;
    }
}

$retroBgColors:#ff6392,#3d348b,#3a86ff,#ef233c,#80ed99,#ffe566,#ced4da,#6c757d,#343a40;

@for $i from 1 through length($retroBgColors){
    $bgColor:nth($retroBgColors,$i);
    .buttons-generator-retro--#{$i}{
        @include buttons-generator-retro--common($bgColor);
    }
}



